package app.caretrack.model;

import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.Inheritance;
import javax.persistence.InheritanceType;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

@Entity
@Table(name = "AlarmNotificationAlarms")
@Inheritance(strategy = InheritanceType.TABLE_PER_CLASS)
public class AlarmNotificationAlarm extends BaseModel {

    private AlarmType alarmType;

    @ManyToOne(fetch = FetchType.EAGER)
    public AlarmType getAlarmType() {
        return this.alarmType;
    }

    public void setAlarmType(AlarmType alarmType) {
        this.alarmType = alarmType;
    }

}
